package t02;

/**
 * @author zhu
 * @date 2024-04-11
 */
public class Lion extends Animal {
    public void move(IMove iMove){
        iMove.move();
    }
    public void eat(){
        System.out.println("吃");
    }
    public void buShi1(){
        move(new IMove() {
            @Override
            public void move() {
                Lion.super.run();
            }
        });
    }
    public void buShi2(){
        move(() -> {
            super.run();
        });
    }
    public void buShi3(){
        move(super::run);
    }
    public void buShi4(){
        move(this::eat);
    }
}
